package com.ta.gulimall.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum PurchaseStatusEnums {
    NEW_PURCHASE(0, "新建"),
    ALLOCATED_PURCHASE(1, "已分配"),
    DRAW_PURCHASE(2, "已领取"),
    COMPLETE_PURCHASE(3, "已完成"),
    ABNORMAL_PURCHASE(4, "有异常");

    @EnumValue
    @JsonValue
    Integer code;
    String type;

    PurchaseStatusEnums(Integer code, String type) {
        this.code = code;
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
